<extend name="Common:sysTemplate" />
<block name="content">
<div class="Item hr">
    <div class="current">缓存管理</div>
</div><form>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
    <thead>
        <tr>
            <td style="text-align: left;" colspan="4">
                &nbsp;<input type="checkbox" onclick="clickCheckbox(this)"/>
            </td>
        </tr>
    </thead>
    <tbody>
        <volist name="caches" id="cache" key="k">
            <php> if($k%2==1) echo "<tr>";</php>
            <td width="30" align="center"><input type="checkbox" name="cache[]" value="{$key}" /></td>
            <td>{$cache.name}<br/> ({$cache.path})</td>
            <php> if($k%2==0) echo "</tr>";</php>
        </volist>
        <php>if(count($caches)%2==1) echo '<td>&nbsp;</td><td>&nbsp;</td></tr>';</php>
    </tbody>
    <tfoot>
        <tr>
            <td colspan="4">
            </td>
        </tr>
    </tfoot>
</table>
</form>
<div class="commonBtnArea" >
    <button class="btn submit">清除已选缓存</button>
</div>
</block>
<block name="footjs">
<script type="text/javascript">
    $(function(){
        $(".submit").click(function(){
            if($("tbody input[type='checkbox']:checked").size()==0){
                $.jBox.tip("请先选择要删除的缓存吧");
                return false;
            }
            commonAjaxSubmit();
        });
    });
</script>
</block>